<%@ page import="app.myproject.model.UserVO" %>
<%@ page import="com.google.appengine.api.datastore.KeyFactory" %>
<html>
<body>
	<h1>Update User</h1>
	
	<%
			UserVO user = new UserVO();
			
				if(request.getAttribute("user")!=null){
				
			user = (UserVO)request.getAttribute("user");
			
				}
		%>
	
	<form method="post" action="../update" >
		<input type="hidden" name="key" id="key" 
			value="<%=KeyFactory.keyToString(user.getKey()) %>" /> 
		
		<table>
			<tr>
				<td>
					Name :
				</td>
				<td>
					<input type="text" style="width: 185px;" maxlength="20" name="name" id="name" 
						value="<%=user.getName() %>" />
				</td>
			</tr>
			<tr>
				<td>Description :</td>
				<td><input type="text" style="width: 185px;" maxlength="100" name="description" id="description" 
					value="<%=user.getDescription() %>"	/></td>
			</tr>					
			<tr>
				<td>
					Email :
				</td>
				<td>
					<input type="text" style="width: 185px;" maxlength="40" name="email" id="email" 
						value="<%=user.getEmail() %>" />
				</td>
			</tr>
		</table>
		<input type="submit" class="update" title="Update" value="Update" />
	</form>
	
</body>
</html>